package org.yn.dept.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.yn.base.domain.BaseDomain;


import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.yn.emp.domain.Employee;


/**
 * <p>
 * 
 * </p>
 *
 * @author yn
 * @since 2023-08-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Shop extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;
    private String tel;


    @DateTimeFormat(pattern = "yyyy-MM-dd")//前端向后端传入的时间
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")//后端向前台传值
    private Date registerTime;
    /**
     * 1=待审核 2=审核通过待激活 3=激活成功 4=驳回
     */
    private Integer state;
    private String address;
    private String logo;
    private Employee admin;

    private Double lon;//经度
    private Double lat;//纬度



}
